<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix = "spring" uri = "http://www.springframework.org/tags" %>
<c:url value="/saveAssociation" var="action"/>
<head>
	<script type="text/javascript"  src="<c:url value="/static/js/jquery-1.4.4.min.js"/>"></script>
	<script src="<c:url value="/Constants"/>"></script>
	<script type="text/javascript" src="<c:url value="/static/js/loading.js"/>"></script>
	<link rel="stylesheet" type="text/css" href="<c:url value="/static/css/loading.css"/>"></link>
</head>

<script type="text/javascript">
<!--
function changeGame(){
	getNonAssociatedLangs($('#gamesCombo').val(),'langCombo');	
}
//-->
</script>

<form:form commandName="games" action="${action}">
	<spring:message code="key.game.label"/>
	<form:select path="" id="gamesCombo" name="game" onchange="changeGame();">
		<form:option value="-1">Select Game</form:option>
		<form:options items="${games}" itemLabel="name" itemValue="id"/>
	</form:select>
	<spring:message code="key.language.label"/>
	<select id="langCombo" name="selectedLanguage">
		<option value="-1" >Select Language</option>
	</select>
	<input type="submit" value="<spring:message code="key.common.create"/>" />
</form:form>